package zhihui.mobile.ui.shop.address;

import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.RelativeLayout;

import com.zgm.utils.ui.UiTextHeader;

import zhihui.mobile.R;
import zhihui.mobile.presenter.IPresenter;
import zhihui.mobile.presenter.shop.ShopAddressSelectPresenter;
import zhihui.mobile.ui.BaseActivity;

/**
 * Created by 张公铭 on 2017/8/16 0016.
 */

public class ShopAddressSelectActivity extends BaseActivity implements IShopAddressSelectContract.IShopAddressSelectView
{
    private IShopAddressSelectContract.IShopAddressSelectPresenter selectPresenter = new ShopAddressSelectPresenter();
    private UiTextHeader mheader;
    private ListView lv_content;
    private LinearLayout ll_noraml;
    private Button btn_add;
    private Button btn_normal_add;

    @Override
    public void initView()
    {
        mheader = (UiTextHeader) findViewById(R.id.shop_address_select_header);
        mheader.setTitle("选择收货地址");
        mheader.setRightText("管理");
        mheader.setRightTextListener(new View.OnClickListener()
        {
            @Override
            public void onClick(View v)
            {

            }
        });
        mheader.setLeftBottonIcon(R.drawable.shop_back);
        mheader.setLeftButtonOnClickListener(new View.OnClickListener()
        {
            @Override
            public void onClick(View v)
            {

            }
        });
        lv_content = (ListView) findViewById(R.id.lv_shop_address_select_content);
        ll_noraml = (LinearLayout) findViewById(R.id.ll_shop_address_select_normal);
        btn_add = (Button) findViewById(R.id.btn_shop_address_select_add);
        btn_add.setOnClickListener(new View.OnClickListener()
        {
            @Override
            public void onClick(View v)
            {

            }
        });

        btn_normal_add = (Button) findViewById(R.id.btn_shop_address_select_normal_add);
        btn_normal_add.setOnClickListener(new View.OnClickListener()
        {
            @Override
            public void onClick(View v)
            {

            }
        });
    }

    @Override
    protected int getLayoutResId()
    {
        return R.layout.shop_address_select_activity;
    }

    @Override
    protected IPresenter[] getPresenters()
    {
        return new IPresenter[]{selectPresenter};
    }

    @Override
    protected void onInitPresenter()
    {
        selectPresenter.init(this, this);
    }
}
